import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/lib/theme-chalk/index.css'
import App from './App.vue'
import Linear from './components/Linear.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'
import '@/assets/style/app.scss'
import '@/assets/style/markdown.scss'
import 'highlight.js/styles/github.css'
// import mermaid from 'mermaid'
// mermaid.initialize(
//   {
//     theme: 'forest',
//     gantt: {
//       axisFormatter: [
//         [
//           '%Y-%m-%d',
//           (d: any) => {
//             return d.getDay() === 1
//           }
//         ]
//       ]
//     }
//   }
// )
const app = createApp(App)
app.component('pre-linear', Linear)
app.use(store).use(router).use(ElementPlus).mount('#app')
